#!/usr/bin/env python2.5
# encoding: utf-8

if not globals().has_key("esda"):
    execfile("esda.py")
    sys.exit()

init()

import random, time

startTime = time.time()
scale     = 100

numberOfEvents  = 10000

name = "Stream0"

newStream(name)

for i in range(0, numberOfEvents * scale, scale):
    streams[name][startTime + i:startTime + i + scale] = random.random()

esda.renderAll()